<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%
    JSONObject jsonData = new JSONObject();
    RecordSet rs = new RecordSet();
    String ids = "";
    rs.executeQuery("select id from cus_fielddata where scopeid=3 and scope='HrmCustomFieldByInfoType' and field0=0 and id !=22");
    while (rs.next()) {
        String id = Util.null2String(rs.getString("id"));
        ids += "".equals(ids) ? id : "," + id;
    }
    jsonData.put("ids", ids);
    out.print(jsonData.toJSONString());
%>
